<% cache("#{date_slug}/topics/alpha", :tag => 'session-info', expires_in: 1.day)  do %>
  <% @topics = Topic.upcoming %>
  <% if @topics.blank? %>
    <div class="empty-list">
      <p>Sorry, there are no upcoming sessions at this time. Please check again later!</p>
    </div>
  <% else %>
    <ul class="topic-list">
      <% @topics.sort_by {|a| a.name.downcase }.each do |topic| %>
        <% cache(["#{date_slug}/topics/alpha", topic], :tag => topic.cache_key, expires_in: 1.day) do %>
          <li>
            <%= link_to topic.name, topic %>
            <% if topic.upcoming_sessions.present? %>
              <% session = topic.upcoming_sessions[0] %>
              <div class="session-info">
                <span class="session-link"><%= link_to_session session %></span>
                <%= session_site(session) %>
              </div>
            <% end %>
          </li>
        <% end %>
      <% end %>
    </ul>
  <% end %>
<% end %>
